import request from "@/utils/request"

// 条件分页所有用户
export const getUserListPage = (nickName,gender,status,page,pageSize) => request.get(`/user?nickName=${nickName}&gender=${gender}&status=${status}&page=${page}&pageSize=${pageSize}`)
// export const getUserListPage = () => request.get(`/user`)

//添加用户
export const addUser = (data) => request.post(`/user`,data)

//根据id回显信息
export const getUserById = (id) => request.get(`/user/${id}`)

//修改用户
export const updateUser = (userId,data) => request.put(`/user/${userId}`,data)

//批量删除用户
export const batchDeleteUser = (userIds) => request.delete(`/user?userIds=${userIds}`)